using UnityEngine;
using System.Collections;

public class StatAdd : MonoBehaviour {

    public int stat;
    public int value;

	void Update () 
    {
        if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began)
        {
            Touch touch = Input.touches[0];
            if (guiTexture.HitTest(touch.position))
            {
                Stats.addStats(this.stat, this.value);
            }
        }
	}

    void OnMouseDown()
    {
        Stats.addStats(this.stat, this.value);
    }
}
